package com.cloud.sky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.sky.entity.po.User;
import com.cloud.sky.service.UserService;
import com.cloud.sky.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * @author tyrone
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2024-08-04 17:04:00
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {
    @Override
    public User getUserByUsername(String username) {
        QueryWrapper<User> wrapper = new QueryWrapper<User>().eq("username", username);
        return getOne(wrapper);
    }
}




